<template>
  <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
    <van-swipe-item
      v-for="(item, index) in bannerList"
      :key="index">
        <img :src="item.img" alt="" />  
    </van-swipe-item>
  </van-swipe>
</template>

<script>
export default {
  name: 'Banner',
  props: {
    bannerList: Array
  }
}
</script>

<style lang="scss" scoped>
.my-swipe .van-swipe-item {
  height: 200px;
  width: 100%;
  color: #fff;
  img {
    display: block;
    width: 100%;
    height: 100%;
  }
}
</style>
